//
//  YTCarNoPassView.m
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/7/18.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import "YTCarNoPassView.h"

@interface YTCarNoPassView ()
@property (weak, nonatomic) IBOutlet UILabel *refuseText;
@end

@implementation YTCarNoPassView

- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title
{
    self = [super initWithFrame:frame];
    if (self) {
        UIView *pop = [[NSBundle mainBundle] loadNibNamed:@"YTCarNoPassView" owner:self options:nil].lastObject;
        pop.frame = self.bounds;
        [self addSubview:pop];
        _refuseText.text = title;
    }
    return self;
}

- (IBAction)updateNowAction:(UIButton *)sender {
    if (_updateNowInfo) {
        _updateNowInfo();
    }
}

@end
